/*
Copyright 2011 Raymond Giorgi

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
 */

package edu.pitt.cs3530.xml;

import edu.pitt.cs3530.xml.ApplicationServerHandler.ConfigObject;

public class ApplicationServerConfig {
	private static ApplicationServerConfig instance;

	public static ApplicationServerConfig getInstance() {
		return instance;
	}

	public static void Initialize(ConfigObject o) {
		instance = new ApplicationServerConfig();
		instance.fullServerName = o.fullServerName;
		instance.serverName = o.serverName;
		instance.port = o.port;
		instance.utilCheckTimeout = o.utilCheckTimeout;
		instance.utilSendTimeout = o.utilSendTimeout;
		instance.hwaddrLocation = o.hwaddrLocation;
	}

	private String fullServerName;
	private String serverName;
	private int port;
	private long utilCheckTimeout;
	private long utilSendTimeout;
	private String hwaddrLocation;

	private ApplicationServerConfig() {
	}

	public String getFullServerName() {
		return this.fullServerName;
	}

	public String getServerName() {
		return this.serverName;
	}

	public int getPort() {
		return this.port;
	}

	public long getUtilCheckTimeout() {
		return this.utilCheckTimeout;
	}

	public long getUtilSendTimeout() {
		return this.utilSendTimeout;
	}

	public String getHwaddrLocation() {
		return this.hwaddrLocation;
	}
}
